<?php
namespace app\voip\validate;


use think\Validate;

class ExcelLoad extends Validate
{
    protected $rule = [
        'title'  =>  'require|max:25',
        'download_password'=>'require|max:64',
        'type_id'=>'require|max:64',
        'data_intro'=>'require|max:120',
        'school_name'=>'require|max:120',
        'class'=>'require|max:120',
        'remark'=>'require|max:120',
        'province'=>'require|max:120',
        'city'=>'require|max:120',
        'county'=>'require|max:120',
    ];

    protected $message = [
        'title.require'       => '标题未写',
        'title.max'        => '标题过长!',
        'type_id'       => '亲选择数据类型',
        'download_password.require'       => '密码未写',
        'download_password.max'        => '密码过长!',
        'data_intro.require'       => '简介未写',
        'data_intro.max'        => '简介过长!',
        'remark.require'       => '备注未填写',
        'remark.max'        => '备注过长!',
        'school_name.require'       => '学校未填写',
        'school_name.max'        => '学校/机构名过长!',
        'class.require'       => '班级未填写',
        'class.max'        => '班级名过长!',
        'province'=>'省错误',
        'city'=>'市错误',
        'county'=>'区/县错误',

    ];

    protected $scene = [
        'excelUpLoadAndMysqlSave'  => ['title','download_passwd','type_id','data_intro','remark','province','city','county'],
    ];
}